package com.xxb.cassandra.entity;

import lombok.Data;
import org.springframework.data.cassandra.core.mapping.Column;
import org.springframework.data.cassandra.core.mapping.PrimaryKey;
import org.springframework.data.cassandra.core.mapping.Table;

/**
 * @author xixianbin
 * @version 1.0
 * @date 2021/7/29 10:09 下午
 */

@Data
@Table
public class Person {

    @PrimaryKey
    private Integer id;
    private String name;
    @Column(value = "name_cn")
    private String nameCn;
    private Integer age;

}
